# -------------------------------------------------------------------
#       -*- coding: utf-8 -*-
#   @Project    :   studentSystem
#   @File       :   折半算法.py
#   @Author     :   WANGYU
#   @Time       :   2021-08-30 11:03:15
#   @Software   :   PyCharm
#   @Desc       :   
# -------------------------------------------------------------------
import random

rand = random.randint(1, 100)
for i in range(1, 11):
    num = int(input('猜一猜是多少（1-100）：'))
    if num < rand:
        print('小')
    elif num > rand:
        print('大')
    else:
        print('正确！')
        break
print(f'一共猜来{i}次')
if i < 3:
    print('----------厉害了，大佬！--------')
elif i <= 7:
    print('----------小伙子，还行！----------')
else:
    print('---------好好学习吧，骚年！---------')
